﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebNext.Domain.Entities
{
	public class EntryHeaderElement : EntryElement
	{
		public const int MaxHeaderLength = 1000;

		public string Header
		{
			get;
			set;
		}

		public EntryHeaderElement()
		{
			this.Type = EntryElementType.Header;
		}

		public override bool ContainsText(string text)
		{
			return this.Header != null && this.Header.IndexOf(text, StringComparison.InvariantCultureIgnoreCase) >= 0;
		}
	}
}
